package com.example.minefieldkeepercloud.adapter;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;

import com.example.minefieldkeepercloud.R;


import com.example.minefieldkeepercloud.bean.PoolBean;
import com.example.minefieldkeepercloud.bean.PoolDetailBean;
import com.king.base.adapter.ViewHolderRecyclerAdapter;
import com.king.base.adapter.holder.ViewHolder;

import java.util.List;

public class PoolDetailAdapter extends ViewHolderRecyclerAdapter<PoolBean> {
    private Activity context;

    public PoolDetailAdapter(Activity context, List<PoolBean> listData) {
        super(context, listData);
        this.context = context;
    }


    @Override
    public View buildConvertView(LayoutInflater layoutInflater, int viewType) {
        return layoutInflater.inflate(R.layout.adapter_pooldetail,null);
    }
    @Override
    public void bindViewDatas(ViewHolder holder, final PoolBean bean, final int position) {

        holder.setText(R.id.tv_1,bean.getKC());
        holder.setText(R.id.tv_2,bean.getKGM());

    }
}
